package day02;

import java.util.Scanner;

//变量demo
public class VarDemo {
    public static void main(String[] args) {
        int a = 1;
        int d = 2,b = 3,c = 4;

        int f = 0;
        int e = 123,m = 124,h;
        h = e*m;
        h = h+12;
        System.out.println(h);
        h++;
        System.out.println(h++);
        System.out.println(h);
        setVar(h);
        gethh(a,b,c,d);
        int aa = 1000000000;
        int sd = 4545;
    }
    private static void setVar(int h){
        System.out.println(++h);
        int l = 12345;
        l+=50;
        System.out.println(l);
        Scanner u = new Scanner(System.in);
        int s = u.nextInt();
        s+=s;
        System.out.println(s);
    }
    private static void gethh(int a,int b,int c,int d){
        int e;
        e = a+++c+++d+b++;
        System.out.println(e);
        e = a+b+c+d;
        System.out.println(e);


    }
}
